From 89978029f6f97bd1bb4390a3e3c2edf073e115c9 Mon Sep 17 00:00:00 2001
From: Mqdd <ahmadmiqdad27@gmail.com>
Date: Fri, 19 Dec 2025 15:15:28 +0700
Subject: <Miqdad> fix title

---
 src/pages/searchkey/[slug].jsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/pages/searchkey/[slug].jsx')

diff --git a/src/pages/searchkey/[slug].jsx b/src/pages/searchkey/[slug].jsx
index 4a6923ff..a23f11b0 100644
--- a/src/pages/searchkey/[slug].jsx
+++ b/src/pages/searchkey/[slug].jsx
@@ -23,7 +23,11 @@ export default function FindPage() {
   const [categoryId, setCategoryId] = useState(null);
 
   const slugRaw = route.query.slug || null;
-  const readableSlug = capitalizeEachWord(slugRaw);
+  const readableSlug = slugRaw
+    ? decodeURIComponent(slugRaw)
+        .replace(/-/g, ' ')
+        .replace(/\b\w/g, (c) => c.toUpperCase())
+    : '';
 
   // 🔹 Fetch searchkey dari Solr
   const getSearchKeyData = async (slug) => {
-- 
cgit v1.2.3

